package cn.tiansu.eway.kylinengine.manager;

import org.apache.log4j.Logger;

import cn.tiansu.eway.kylinengine.service.KYLINEngineService;

/**
 * 多线程处理类，olap查询数据库使用并发方式查询，支持多库
 * @author user
 *
 */
public class MutilThread implements Runnable
{
	private final static Logger log = Logger.getLogger(MutilThread.class);

	/**
	 * olap和kylin的交互模块
	 */
	private KYLINEngineService kylinService = null;
	
	/**
	 * 租户名称
	 */
	private String tenant = null;
	
	private long period = 0;


	public MutilThread(String tenant,KYLINEngineService kylinService,long period)
	{
		this.tenant = tenant;
		this.kylinService = kylinService;
		this.period = period;
	}

	@Override
	public void run()
	{
		kylinService.initCube(tenant,period);
	}

	

}
